<template>
    <button v-on:click="clickCount">{{ count }}</button>
</template>
<script>
    export default {
        inheritAttrs: true,
        data () {
            return {
                count: 0
            }
        },
        methods: {
            clickCount(){
                this.count++;
                this.$emit('clickCounter', this.count)
            }
        }
    }
</script>
<style scoped>
</style>